package com.gitee.zw.irmp.common.auth;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnMissingBean(AuthUtils.AuthUserHolder.class)
public class AuthUtilsConfig {

    @Bean
    public AuthUtils.AuthUserHolder authUtils() {
        return AuthUtils.init();
    }
}
